<div class="layui-fluid layui-anim website-anim-up" id="website-class-apply-check" lay-title="申报新增">
    <div class="layui-row layui-col-space8 website-container">
        <div class="layui-col-md10 layui-col-sm10 layui-col-xs10">
            <form class="layui-form" lay-filter="class-apply-add-form">
                <input type="hidden" name="declareId" th:value="${declareId}">
                <div class="layui-card" id="client-user-info">
                    <div class="layui-card-body layui-form-item">
                        <div class="layui-row">
                            <div class="layui-inline layui-col-xs5 layui-col-sm5 layui-col-md12">
                                <label class="layui-form-label layui-form-label">自动审核结果</label>
                                <div class="layui-input-block">
                                <textarea class="layui-textarea layui-disabled" name="autoCheckResult" autocomplete="off" th:text="${autoCheckResult}"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-inline layui-col-xs5 layui-col-sm5 layui-col-md12">
                                <label class="layui-form-label layui-form-label">审核不通过的原因</label>
                                <div class="layui-input-block">
                                <textarea class="layui-textarea" maxlength="100" name="checkResult" placeholder="请输入内容，限制100字"
                                          autocomplete="off"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item" pane="">
                            <label class="layui-form-label">审核结果</label>
                            <div class="layui-input-block">
                                <input type="radio" name="statusTypeCode" value="check_passed" title="通过" checked="">
                                <input type="radio" name="statusTypeCode" value="check_failed" title="不通过">
                            </div>
                        </div>
                        <div class="layui-card-footer">
                            <button type="submit" th:if="${statusTypeCode} =='apply'" class="layui-btn" lay-submit="" lay-filter="checkIn">审查</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script data-th-inline="none" type="text/javascript">
    layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'website', 'treeSelect'], function () {
        var $ = layui.jquery,
                laydate = layui.laydate,
                website = layui.website,
                form = layui.form,
                table = layui.table,
                view = layui.view,
                dropdown = layui.dropdown,
                sortObject = {field: 'createTime', type: null},
                tableIns;
        // 重新渲染 form否则不会显示下拉框
        form.render();
        form.on('submit(checkIn)', function(data){
            website.post(ctx + 'declareTopic/check/commit', data.field, function () {
                layer.closeAll();
                website.alert.success('操作成功');
                $('#website-declareTopic').find('#query').click();
                debugger
                $('#checkFooter').css({"display": "none"});
            });
            return false;
        });

    })


</script>